package tt.dz.service.imp.sys;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import tt.dz.dao.ext.dic.OmsDicSourceNameDao;
import tt.dz.entity.base.JsonForList;
import tt.dz.entity.dic.OmsDicSourceName;
import tt.dz.service.sys.DicSourceService;
@Service @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class DicSourceServiceImpl  implements DicSourceService{
	@Resource
	OmsDicSourceNameDao omsDicSourceNameDao;

	@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public JsonForList getAll() {
		JsonForList json = new JsonForList();
		json.setMsg("ok");
		json.setCode("200");
		json.setList(omsDicSourceNameDao.findAll(new OmsDicSourceName()));
		return json;
	}
	
}
